package com.xiaoyu.client.model.seek;

import java.util.List;

/**
 * Created by jk on 2018/10/29.
 */
public class SeekReplyParam {
    /**
     * nickname : 测试用户
     * userphoto : http://gwc.oss-cn-beijing.aliyuncs.com/2016-09-19_16:49:15.jpg
     * seekreplyid : 1
     * seekid : 1
     * seekreplycontent : 这是求助的回复
     * seekreplaytime : 09:45
     * seekreplayagree : 1
     * seekreplayparentid : 0
     * seekreplayagreeuser : ["1"]
     * good : 1
     * child : [{"nickname":"测试用户","userphoto":"http://gwc.oss-cn-beijing.aliyuncs.com/2016-09-19_16:49:15.jpg","seekreplyid":"2","seekid":"1","seekreplycontent":"这是对第一条回复进行的回复","seekreplaytime":"1538185719","seekreplayagree":"0","seekreplayparentid":"1","replaycount":"2"},{"nickname":"测试用户","userphoto":"http://gwc.oss-cn-beijing.aliyuncs.com/2016-09-19_16:49:15.jpg","seekreplyid":"5","seekid":"1","seekreplycontent":"第一条回复的第二条回复","seekreplaytime":"1538189098","seekreplayagree":"0","seekreplayparentid":"1","replaycount":"2"}]
     */

    private String userid;//用户id
    private String nickname;//回复人昵称
    private String userphoto;//回复人头像
    private String seekreplyid;//回复id
    private String seekid;//求助id
    private String seekreplycontent;//回复内容
    private String seekreplaytime;//回复时间
    private String seekreplayagree;//回复点赞数量
    private String seekreplayparentid;
    private String good;//判断当前用户是否点过赞0否1是（点过赞之后就不能再点了）
    private List<String> seekreplayagreeuser;
    private List<ChildBean> child;//二级回复的内容
    private String replaycount;//二级回复总条数
    private String type;//类别”s”求助”t”帖子
    private String seektitle;//求助的内容
    private String fourmreplaysum;//回复的数量

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSeektitle() {
        return seektitle;
    }

    public void setSeektitle(String seektitle) {
        this.seektitle = seektitle;
    }

    public String getFourmreplaysum() {
        return fourmreplaysum;
    }

    public void setFourmreplaysum(String fourmreplaysum) {
        this.fourmreplaysum = fourmreplaysum;
    }

    public String getReplaycount() {
        return replaycount;
    }

    public void setReplaycount(String replaycount) {
        this.replaycount = replaycount;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getUserphoto() {
        return userphoto;
    }

    public void setUserphoto(String userphoto) {
        this.userphoto = userphoto;
    }

    public String getSeekreplyid() {
        return seekreplyid;
    }

    public void setSeekreplyid(String seekreplyid) {
        this.seekreplyid = seekreplyid;
    }

    public String getSeekid() {
        return seekid;
    }

    public void setSeekid(String seekid) {
        this.seekid = seekid;
    }

    public String getSeekreplycontent() {
        return seekreplycontent;
    }

    public void setSeekreplycontent(String seekreplycontent) {
        this.seekreplycontent = seekreplycontent;
    }

    public String getSeekreplaytime() {
        return seekreplaytime;
    }

    public void setSeekreplaytime(String seekreplaytime) {
        this.seekreplaytime = seekreplaytime;
    }

    public String getSeekreplayagree() {
        return seekreplayagree;
    }

    public void setSeekreplayagree(String seekreplayagree) {
        this.seekreplayagree = seekreplayagree;
    }

    public String getSeekreplayparentid() {
        return seekreplayparentid;
    }

    public void setSeekreplayparentid(String seekreplayparentid) {
        this.seekreplayparentid = seekreplayparentid;
    }

    public boolean isLike() {
        return Integer.parseInt(good) == 1 ? true : false;
    }

    public void setGood(String good) {
        this.good = good;
    }

    public List<String> getSeekreplayagreeuser() {
        return seekreplayagreeuser;
    }

    public void setSeekreplayagreeuser(List<String> seekreplayagreeuser) {
        this.seekreplayagreeuser = seekreplayagreeuser;
    }

    public List<ChildBean> getChild() {
        return child;
    }

    public void setChild(List<ChildBean> child) {
        this.child = child;
    }

    public static class ChildBean {
        /**
         * nickname : 测试用户
         * userphoto : http://gwc.oss-cn-beijing.aliyuncs.com/2016-09-19_16:49:15.jpg
         * seekreplyid : 2
         * seekid : 1
         * seekreplycontent : 这是对第一条回复进行的回复
         * seekreplaytime : 1538185719
         * seekreplayagree : 0
         * seekreplayparentid : 1
         * replaycount : 2
         */

        private String nickname;
        private String userphoto;
        private String seekreplyid;
        private String seekid;
        private String seekreplycontent;
        private String seekreplaytime;
        private String seekreplayagree;
        private String seekreplayparentid;


        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getUserphoto() {
            return userphoto;
        }

        public void setUserphoto(String userphoto) {
            this.userphoto = userphoto;
        }

        public String getSeekreplyid() {
            return seekreplyid;
        }

        public void setSeekreplyid(String seekreplyid) {
            this.seekreplyid = seekreplyid;
        }

        public String getSeekid() {
            return seekid;
        }

        public void setSeekid(String seekid) {
            this.seekid = seekid;
        }

        public String getSeekreplycontent() {
            return seekreplycontent;
        }

        public void setSeekreplycontent(String seekreplycontent) {
            this.seekreplycontent = seekreplycontent;
        }

        public String getSeekreplaytime() {
            return seekreplaytime;
        }

        public void setSeekreplaytime(String seekreplaytime) {
            this.seekreplaytime = seekreplaytime;
        }

        public String getSeekreplayagree() {
            return seekreplayagree;
        }

        public void setSeekreplayagree(String seekreplayagree) {
            this.seekreplayagree = seekreplayagree;
        }

        public String getSeekreplayparentid() {
            return seekreplayparentid;
        }

        public void setSeekreplayparentid(String seekreplayparentid) {
            this.seekreplayparentid = seekreplayparentid;
        }

    }

}
